package cn.tedu.img.controller;

import cn.tedu.img.service.PicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jt.common.vo.PicUploadResult;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/pic")
public class PicController {
    @Autowired
    PicService ps;

    @RequestMapping("/upload")
    public PicUploadResult picUpload(MultipartFile pic) {
        return ps.upload(pic);
    }
}
